import baseConfig from "./baseConfig";
import i18n from "@/locales/index.js";

const { t } = i18n.global;

export class ProLabel extends baseConfig {
  name = "辅助标签纸";
  type = "ProLable";
  picName = "";
  isProLabel = true;

  reelType = 1; //盘袋盒箱 0-其他 1-盘 2-袋 3-盒 4-箱
  mergeType = 1; //盘类型  0-未知 1-正常 1-合并 3-零盘
  proType = 1; //1-湿度敏感标签 2.ROHS标签 3.ESD静电贴
  qaStamp = false; // 是否需要印章
  qaSize = 12;
  qaStampType = "";
  qaStampCode = "";
  qaStampX = 0;
  qaStampY = 0;
  qaStampAngle = 0;
  isNotNeedLabelForMSL1 = true; //产品标签湿度敏感等级为MSL1时，不粘贴湿敏标签
  // qaStampDesc = "";
  mslPrintMethod = 0; //0-不碰图 1-日期 2-自定义  湿度敏感标签内容
  mslCustomStr = ""; //自定义
  constructor(obj) {
    super();
    for (let key in obj) {
      this[key] = obj[key];
    }
  }
}

let label1 = new ProLabel({
  length: 60,
  width: 80,
  name: "辅助标签1",
  picName: "label-1",
  description: "辅助标签1",
  reelType: 1,
  mergeType: 1,
});
let label2 = new ProLabel({
  length: 50,
  width: 80,
  name: "辅助标签2",
  picName: "label-1",
  description: "辅助标签2",
  reelType: 1,
  mergeType: 1,
});

export default [label1, label2];
